package com.dzt.androidframework.express;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

/**
 * Created by QHT on 2017-04-13.
 */
public class CompanySingleton {
	private static CompanySingleton Instance = new CompanySingleton();
	public HashMap<String, String> CompanyMap = new HashMap<>();
	public List<String> CompanyList = new ArrayList<>();

	private CompanySingleton() {
		getCampaniles();
	}

	public static CompanySingleton getInstance() {
		return Instance;
	}

	private List<String> getCampaniles() {
		CompanyMap.put("申通", "shentong");
		CompanyMap.put("EMS", "ems");
		CompanyMap.put("顺丰", "shunfeng");
		CompanyMap.put("圆通", "yuantong");
		CompanyMap.put("中通", "zhongtong");
		CompanyMap.put("韵达", "yunda");
		CompanyMap.put("天天", "tiantian");
		CompanyMap.put("汇通", "huitongkuaidi");
		CompanyMap.put("全峰", "quanfengkuaidi");
		CompanyMap.put("德邦", "debangwuliu");
		CompanyMap.put("宅急送", "zhaijisong");
		CompanyMap.put("百世汇通", "huitongkuaidi");

		Iterator it = CompanyMap.entrySet().iterator();
		while (it.hasNext()) {
			Map.Entry entry = (Map.Entry) it.next();
			String key = (String) entry.getKey();
			CompanyList.add(key);
		}
		return CompanyList;
	}
}
